package yag.battle.pet.factory;

import org.springframework.stereotype.Component;
import yag.battle.pet.model.Equipment;
import yag.battle.pet.model.Pet;
import yag.battle.pet.model.PetType;

/**
 * Created by user on 31.08.2014.
 */

@Component
public class PetFactory {


    public Pet create(PetType p) {

        switch (p) {
            case CAT: {
                return new Pet(new Equipment("HEADCAT"), 70);
            }
            case DOG: {
                return new Pet(new Equipment("DOGHEAD"), 20);
            }
        }
        return null;

    }
}
